﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewCart.ascx.cs" Inherits="WebDemo_ADO.WUC.ViewCart" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" DataKeyNames="ProductID" ShowFooter="True" OnRowDataBound="GridView1_RowDataBound">
    <AlternatingRowStyle BackColor="#F7F7F7" />
    <Columns>
        <asp:TemplateField HeaderText="STT">
            <ItemTemplate>
                <%# Container.DataItemIndex + 1 %>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="ProductID" HeaderText="Mã SP" />
        <asp:BoundField DataField="TenSP" HeaderText="Tên sản phẩm" />
        <asp:BoundField DataField="Price" HeaderText="Giá" />
        <asp:TemplateField HeaderText="Số Lượng">
            <ItemTemplate>
                <asp:TextBox Columns="5" ID="txtQuantity" runat="server" Text='<%# Eval("Quantity") %>' Width="50%"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="Quantity" HeaderText="Tổng cộng" />
        <asp:TemplateField>
            <ItemTemplate>
                <asp:ImageButton ID="btnDeleteCart" runat="server" ImageUrl="~/img/delete.png" OnClick="btnDeleteCart_Click" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
    <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
</asp:GridView>
<asp:Button ID="btnThanhToan" runat="server" Text="Thanh toán" OnClick="btnThanhToan_Click" />
<asp:Button ID="btnUpdateCart" runat="server" Text="UpdateCart" OnClick="btnUpdateCart_Click" />

<p>
    &nbsp;
</p>



